﻿* Encoding: UTF-8.

*PRETEST

UNIANOVA hab_dur BY age 
  /METHOD=SSTYPE(3) 
  /INTERCEPT=INCLUDE 
  /EMMEANS=TABLES(OVERALL) 
  /PRINT=ETASQ DESCRIPTIVE OPOWER 
  /CRITERIA=ALPHA(.05) 
  /DESIGN=age.

UNIANOVA hab_num BY age 
  /METHOD=SSTYPE(3) 
  /INTERCEPT=INCLUDE 
  /EMMEANS=TABLES(OVERALL) 
  /PRINT=ETASQ DESCRIPTIVE OPOWER 
  /CRITERIA=ALPHA(.05) 
  /DESIGN=age.

UNIANOVA first BY age 
  /METHOD=SSTYPE(3) 
  /INTERCEPT=INCLUDE 
  /EMMEANS=TABLES(OVERALL) 
  /PRINT=ETASQ DESCRIPTIVE OPOWER 
  /CRITERIA=ALPHA(.05) 
  /DESIGN=age.

UNIANOVA last BY age 
  /METHOD=SSTYPE(3) 
  /INTERCEPT=INCLUDE 
  /EMMEANS=TABLES(OVERALL) 
  /PRINT=ETASQ DESCRIPTIVE OPOWER 
  /CRITERIA=ALPHA(.05) 
  /DESIGN=age.

UNIANOVA Looingdrop BY age 
  /METHOD=SSTYPE(3) 
  /INTERCEPT=INCLUDE 
  /EMMEANS=TABLES(OVERALL) 
  /PRINT=ETASQ DESCRIPTIVE OPOWER 
  /CRITERIA=ALPHA(.05) 
  /DESIGN=age.

GLM pre post BY age 
  /WSFACTOR=PreVSPost 2 Polynomial 
  /METHOD=SSTYPE(3) 
  /EMMEANS=TABLES(OVERALL) 
  /EMMEANS=TABLES(age*PreVSPost) COMPARE(PreVSPost) ADJ(Bonferroni) 
  /PRINT=DESCRIPTIVE ETASQ OPOWER 
  /CRITERIA=ALPHA(.05) 
  /WSDESIGN=PreVSPost


*FULL MODEL

GLM same switch BY age gender switch_item switch_tone 
  /WSFACTOR=testtype 2 Polynomial 
  /METHOD=SSTYPE(3) 
  /EMMEANS=TABLES(OVERALL) 
  /CRITERIA=ALPHA(.05) 
  /WSDESIGN=testtype 
  /DESIGN=age gender switch_item switch_tone gender*switch_item gender*switch_tone switch_item*switch_tone 
    gender*switch_item*switch_tone.


GLM same switch BY age  
  /WSFACTOR=testtype 2 Polynomial 
  /METHOD=SSTYPE(3) 
  /EMMEANS=TABLES(OVERALL) 
  /EMMEANS = TABLES(age*testtype) COMPARE(testtype) ADJ(Bonferroni) 
  /PRINT=DESCRIPTIVE ETASQ OPOWER 
  /CRITERIA=ALPHA(.05) 
  /WSDESIGN=testtype
  /DESIGN=age.

* nonparametric test

SORT CASES  BY age. 
SPLIT FILE SEPARATE BY age.  
NPAR TESTS 
  /WILCOXON=same WITH switch (PAIRED) 
  /MISSING ANALYSIS.


